package com.zl.zlbaseproject.base.presenter;


import android.content.Context;

import com.zl.zlbaseproject.model.net.engine.RxManager;

/**
 * Created by 郑磊 on 2018/5/27.
 */

public class BasePresenter<V extends BaseContract.View>  {
    protected V mView;
    protected Context mContext;

    /**
     * 用于管理Rxjava 注册订阅和取消订阅
     */
    protected RxManager mRxManager =new RxManager();

    public BasePresenter(V view,Context context) {
        mView = view;
        mContext =context;
    }



    public void destroy() {
        mRxManager.unSubscribe();
        mView =null;

    }
}
